package com.baigu.order.dao.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BgOrderDetailExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public BgOrderDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(String value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(String value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(String value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(String value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(String value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(String value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLike(String value) {
            addCriterion("order_id like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotLike(String value) {
            addCriterion("order_id not like", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<String> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<String> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(String value1, String value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(String value1, String value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNull() {
            addCriterion("product_id is null");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion("product_id is not null");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(String value) {
            addCriterion("product_id =", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(String value) {
            addCriterion("product_id <>", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(String value) {
            addCriterion("product_id >", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(String value) {
            addCriterion("product_id >=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(String value) {
            addCriterion("product_id <", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(String value) {
            addCriterion("product_id <=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLike(String value) {
            addCriterion("product_id like", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotLike(String value) {
            addCriterion("product_id not like", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<String> values) {
            addCriterion("product_id in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<String> values) {
            addCriterion("product_id not in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(String value1, String value2) {
            addCriterion("product_id between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(String value1, String value2) {
            addCriterion("product_id not between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductNameIsNull() {
            addCriterion("product_name is null");
            return (Criteria) this;
        }

        public Criteria andProductNameIsNotNull() {
            addCriterion("product_name is not null");
            return (Criteria) this;
        }

        public Criteria andProductNameEqualTo(String value) {
            addCriterion("product_name =", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotEqualTo(String value) {
            addCriterion("product_name <>", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameGreaterThan(String value) {
            addCriterion("product_name >", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameGreaterThanOrEqualTo(String value) {
            addCriterion("product_name >=", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLessThan(String value) {
            addCriterion("product_name <", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLessThanOrEqualTo(String value) {
            addCriterion("product_name <=", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameLike(String value) {
            addCriterion("product_name like", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotLike(String value) {
            addCriterion("product_name not like", value, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameIn(List<String> values) {
            addCriterion("product_name in", values, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotIn(List<String> values) {
            addCriterion("product_name not in", values, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameBetween(String value1, String value2) {
            addCriterion("product_name between", value1, value2, "productName");
            return (Criteria) this;
        }

        public Criteria andProductNameNotBetween(String value1, String value2) {
            addCriterion("product_name not between", value1, value2, "productName");
            return (Criteria) this;
        }

        public Criteria andProductSkuIdIsNull() {
            addCriterion("product_sku_id is null");
            return (Criteria) this;
        }

        public Criteria andProductSkuIdIsNotNull() {
            addCriterion("product_sku_id is not null");
            return (Criteria) this;
        }

        public Criteria andProductSkuIdEqualTo(String value) {
            addCriterion("product_sku_id =", value, "productSkuId");
            return (Criteria) this;
        }

        public Criteria andProductSkuIdNotEqualTo(String value) {
            addCriterion("product_sku_id <>", value, "productSkuId");
            return (Criteria) this;
        }

        public Criteria andProductSkuIdGreaterThan(String value) {
            addCriterion("product_sku_id >", value, "productSkuId");
            return (Criteria) this;
        }

        public Criteria andProductSkuIdGreaterThanOrEqualTo(String value) {
            addCriterion("product_sku_id >=", value, "productSkuId");
            return (Criteria) this;
        }

        public Criteria andProductSkuIdLessThan(String value) {
            addCriterion("product_sku_id <", value, "productSkuId");
            return (Criteria) this;
        }

        public Criteria andProductSkuIdLessThanOrEqualTo(String value) {
            addCriterion("product_sku_id <=", value, "productSkuId");
            return (Criteria) this;
        }

        public Criteria andProductSkuIdLike(String value) {
            addCriterion("product_sku_id like", value, "productSkuId");
            return (Criteria) this;
        }

        public Criteria andProductSkuIdNotLike(String value) {
            addCriterion("product_sku_id not like", value, "productSkuId");
            return (Criteria) this;
        }

        public Criteria andProductSkuIdIn(List<String> values) {
            addCriterion("product_sku_id in", values, "productSkuId");
            return (Criteria) this;
        }

        public Criteria andProductSkuIdNotIn(List<String> values) {
            addCriterion("product_sku_id not in", values, "productSkuId");
            return (Criteria) this;
        }

        public Criteria andProductSkuIdBetween(String value1, String value2) {
            addCriterion("product_sku_id between", value1, value2, "productSkuId");
            return (Criteria) this;
        }

        public Criteria andProductSkuIdNotBetween(String value1, String value2) {
            addCriterion("product_sku_id not between", value1, value2, "productSkuId");
            return (Criteria) this;
        }

        public Criteria andProductSkuNameIsNull() {
            addCriterion("product_sku_name is null");
            return (Criteria) this;
        }

        public Criteria andProductSkuNameIsNotNull() {
            addCriterion("product_sku_name is not null");
            return (Criteria) this;
        }

        public Criteria andProductSkuNameEqualTo(String value) {
            addCriterion("product_sku_name =", value, "productSkuName");
            return (Criteria) this;
        }

        public Criteria andProductSkuNameNotEqualTo(String value) {
            addCriterion("product_sku_name <>", value, "productSkuName");
            return (Criteria) this;
        }

        public Criteria andProductSkuNameGreaterThan(String value) {
            addCriterion("product_sku_name >", value, "productSkuName");
            return (Criteria) this;
        }

        public Criteria andProductSkuNameGreaterThanOrEqualTo(String value) {
            addCriterion("product_sku_name >=", value, "productSkuName");
            return (Criteria) this;
        }

        public Criteria andProductSkuNameLessThan(String value) {
            addCriterion("product_sku_name <", value, "productSkuName");
            return (Criteria) this;
        }

        public Criteria andProductSkuNameLessThanOrEqualTo(String value) {
            addCriterion("product_sku_name <=", value, "productSkuName");
            return (Criteria) this;
        }

        public Criteria andProductSkuNameLike(String value) {
            addCriterion("product_sku_name like", value, "productSkuName");
            return (Criteria) this;
        }

        public Criteria andProductSkuNameNotLike(String value) {
            addCriterion("product_sku_name not like", value, "productSkuName");
            return (Criteria) this;
        }

        public Criteria andProductSkuNameIn(List<String> values) {
            addCriterion("product_sku_name in", values, "productSkuName");
            return (Criteria) this;
        }

        public Criteria andProductSkuNameNotIn(List<String> values) {
            addCriterion("product_sku_name not in", values, "productSkuName");
            return (Criteria) this;
        }

        public Criteria andProductSkuNameBetween(String value1, String value2) {
            addCriterion("product_sku_name between", value1, value2, "productSkuName");
            return (Criteria) this;
        }

        public Criteria andProductSkuNameNotBetween(String value1, String value2) {
            addCriterion("product_sku_name not between", value1, value2, "productSkuName");
            return (Criteria) this;
        }

        public Criteria andSaleTotalMoneyIsNull() {
            addCriterion("sale_total_money is null");
            return (Criteria) this;
        }

        public Criteria andSaleTotalMoneyIsNotNull() {
            addCriterion("sale_total_money is not null");
            return (Criteria) this;
        }

        public Criteria andSaleTotalMoneyEqualTo(Integer value) {
            addCriterion("sale_total_money =", value, "saleTotalMoney");
            return (Criteria) this;
        }

        public Criteria andSaleTotalMoneyNotEqualTo(Integer value) {
            addCriterion("sale_total_money <>", value, "saleTotalMoney");
            return (Criteria) this;
        }

        public Criteria andSaleTotalMoneyGreaterThan(Integer value) {
            addCriterion("sale_total_money >", value, "saleTotalMoney");
            return (Criteria) this;
        }

        public Criteria andSaleTotalMoneyGreaterThanOrEqualTo(Integer value) {
            addCriterion("sale_total_money >=", value, "saleTotalMoney");
            return (Criteria) this;
        }

        public Criteria andSaleTotalMoneyLessThan(Integer value) {
            addCriterion("sale_total_money <", value, "saleTotalMoney");
            return (Criteria) this;
        }

        public Criteria andSaleTotalMoneyLessThanOrEqualTo(Integer value) {
            addCriterion("sale_total_money <=", value, "saleTotalMoney");
            return (Criteria) this;
        }

        public Criteria andSaleTotalMoneyIn(List<Integer> values) {
            addCriterion("sale_total_money in", values, "saleTotalMoney");
            return (Criteria) this;
        }

        public Criteria andSaleTotalMoneyNotIn(List<Integer> values) {
            addCriterion("sale_total_money not in", values, "saleTotalMoney");
            return (Criteria) this;
        }

        public Criteria andSaleTotalMoneyBetween(Integer value1, Integer value2) {
            addCriterion("sale_total_money between", value1, value2, "saleTotalMoney");
            return (Criteria) this;
        }

        public Criteria andSaleTotalMoneyNotBetween(Integer value1, Integer value2) {
            addCriterion("sale_total_money not between", value1, value2, "saleTotalMoney");
            return (Criteria) this;
        }

        public Criteria andSaleActualMoneyIsNull() {
            addCriterion("sale_actual_money is null");
            return (Criteria) this;
        }

        public Criteria andSaleActualMoneyIsNotNull() {
            addCriterion("sale_actual_money is not null");
            return (Criteria) this;
        }

        public Criteria andSaleActualMoneyEqualTo(Integer value) {
            addCriterion("sale_actual_money =", value, "saleActualMoney");
            return (Criteria) this;
        }

        public Criteria andSaleActualMoneyNotEqualTo(Integer value) {
            addCriterion("sale_actual_money <>", value, "saleActualMoney");
            return (Criteria) this;
        }

        public Criteria andSaleActualMoneyGreaterThan(Integer value) {
            addCriterion("sale_actual_money >", value, "saleActualMoney");
            return (Criteria) this;
        }

        public Criteria andSaleActualMoneyGreaterThanOrEqualTo(Integer value) {
            addCriterion("sale_actual_money >=", value, "saleActualMoney");
            return (Criteria) this;
        }

        public Criteria andSaleActualMoneyLessThan(Integer value) {
            addCriterion("sale_actual_money <", value, "saleActualMoney");
            return (Criteria) this;
        }

        public Criteria andSaleActualMoneyLessThanOrEqualTo(Integer value) {
            addCriterion("sale_actual_money <=", value, "saleActualMoney");
            return (Criteria) this;
        }

        public Criteria andSaleActualMoneyIn(List<Integer> values) {
            addCriterion("sale_actual_money in", values, "saleActualMoney");
            return (Criteria) this;
        }

        public Criteria andSaleActualMoneyNotIn(List<Integer> values) {
            addCriterion("sale_actual_money not in", values, "saleActualMoney");
            return (Criteria) this;
        }

        public Criteria andSaleActualMoneyBetween(Integer value1, Integer value2) {
            addCriterion("sale_actual_money between", value1, value2, "saleActualMoney");
            return (Criteria) this;
        }

        public Criteria andSaleActualMoneyNotBetween(Integer value1, Integer value2) {
            addCriterion("sale_actual_money not between", value1, value2, "saleActualMoney");
            return (Criteria) this;
        }

        public Criteria andSaleDiscountMoneyIsNull() {
            addCriterion("sale_discount_money is null");
            return (Criteria) this;
        }

        public Criteria andSaleDiscountMoneyIsNotNull() {
            addCriterion("sale_discount_money is not null");
            return (Criteria) this;
        }

        public Criteria andSaleDiscountMoneyEqualTo(Integer value) {
            addCriterion("sale_discount_money =", value, "saleDiscountMoney");
            return (Criteria) this;
        }

        public Criteria andSaleDiscountMoneyNotEqualTo(Integer value) {
            addCriterion("sale_discount_money <>", value, "saleDiscountMoney");
            return (Criteria) this;
        }

        public Criteria andSaleDiscountMoneyGreaterThan(Integer value) {
            addCriterion("sale_discount_money >", value, "saleDiscountMoney");
            return (Criteria) this;
        }

        public Criteria andSaleDiscountMoneyGreaterThanOrEqualTo(Integer value) {
            addCriterion("sale_discount_money >=", value, "saleDiscountMoney");
            return (Criteria) this;
        }

        public Criteria andSaleDiscountMoneyLessThan(Integer value) {
            addCriterion("sale_discount_money <", value, "saleDiscountMoney");
            return (Criteria) this;
        }

        public Criteria andSaleDiscountMoneyLessThanOrEqualTo(Integer value) {
            addCriterion("sale_discount_money <=", value, "saleDiscountMoney");
            return (Criteria) this;
        }

        public Criteria andSaleDiscountMoneyIn(List<Integer> values) {
            addCriterion("sale_discount_money in", values, "saleDiscountMoney");
            return (Criteria) this;
        }

        public Criteria andSaleDiscountMoneyNotIn(List<Integer> values) {
            addCriterion("sale_discount_money not in", values, "saleDiscountMoney");
            return (Criteria) this;
        }

        public Criteria andSaleDiscountMoneyBetween(Integer value1, Integer value2) {
            addCriterion("sale_discount_money between", value1, value2, "saleDiscountMoney");
            return (Criteria) this;
        }

        public Criteria andSaleDiscountMoneyNotBetween(Integer value1, Integer value2) {
            addCriterion("sale_discount_money not between", value1, value2, "saleDiscountMoney");
            return (Criteria) this;
        }

        public Criteria andSaleTotalNumIsNull() {
            addCriterion("sale_total_num is null");
            return (Criteria) this;
        }

        public Criteria andSaleTotalNumIsNotNull() {
            addCriterion("sale_total_num is not null");
            return (Criteria) this;
        }

        public Criteria andSaleTotalNumEqualTo(Integer value) {
            addCriterion("sale_total_num =", value, "saleTotalNum");
            return (Criteria) this;
        }

        public Criteria andSaleTotalNumNotEqualTo(Integer value) {
            addCriterion("sale_total_num <>", value, "saleTotalNum");
            return (Criteria) this;
        }

        public Criteria andSaleTotalNumGreaterThan(Integer value) {
            addCriterion("sale_total_num >", value, "saleTotalNum");
            return (Criteria) this;
        }

        public Criteria andSaleTotalNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("sale_total_num >=", value, "saleTotalNum");
            return (Criteria) this;
        }

        public Criteria andSaleTotalNumLessThan(Integer value) {
            addCriterion("sale_total_num <", value, "saleTotalNum");
            return (Criteria) this;
        }

        public Criteria andSaleTotalNumLessThanOrEqualTo(Integer value) {
            addCriterion("sale_total_num <=", value, "saleTotalNum");
            return (Criteria) this;
        }

        public Criteria andSaleTotalNumIn(List<Integer> values) {
            addCriterion("sale_total_num in", values, "saleTotalNum");
            return (Criteria) this;
        }

        public Criteria andSaleTotalNumNotIn(List<Integer> values) {
            addCriterion("sale_total_num not in", values, "saleTotalNum");
            return (Criteria) this;
        }

        public Criteria andSaleTotalNumBetween(Integer value1, Integer value2) {
            addCriterion("sale_total_num between", value1, value2, "saleTotalNum");
            return (Criteria) this;
        }

        public Criteria andSaleTotalNumNotBetween(Integer value1, Integer value2) {
            addCriterion("sale_total_num not between", value1, value2, "saleTotalNum");
            return (Criteria) this;
        }

        public Criteria andDelFlagIsNull() {
            addCriterion("del_flag is null");
            return (Criteria) this;
        }

        public Criteria andDelFlagIsNotNull() {
            addCriterion("del_flag is not null");
            return (Criteria) this;
        }

        public Criteria andDelFlagEqualTo(Integer value) {
            addCriterion("del_flag =", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotEqualTo(Integer value) {
            addCriterion("del_flag <>", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagGreaterThan(Integer value) {
            addCriterion("del_flag >", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("del_flag >=", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagLessThan(Integer value) {
            addCriterion("del_flag <", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagLessThanOrEqualTo(Integer value) {
            addCriterion("del_flag <=", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagIn(List<Integer> values) {
            addCriterion("del_flag in", values, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotIn(List<Integer> values) {
            addCriterion("del_flag not in", values, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagBetween(Integer value1, Integer value2) {
            addCriterion("del_flag between", value1, value2, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("del_flag not between", value1, value2, "delFlag");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNull() {
            addCriterion("create_by is null");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNotNull() {
            addCriterion("create_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreateByEqualTo(String value) {
            addCriterion("create_by =", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotEqualTo(String value) {
            addCriterion("create_by <>", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThan(String value) {
            addCriterion("create_by >", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThanOrEqualTo(String value) {
            addCriterion("create_by >=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThan(String value) {
            addCriterion("create_by <", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThanOrEqualTo(String value) {
            addCriterion("create_by <=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLike(String value) {
            addCriterion("create_by like", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotLike(String value) {
            addCriterion("create_by not like", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByIn(List<String> values) {
            addCriterion("create_by in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotIn(List<String> values) {
            addCriterion("create_by not in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByBetween(String value1, String value2) {
            addCriterion("create_by between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotBetween(String value1, String value2) {
            addCriterion("create_by not between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNull() {
            addCriterion("update_by is null");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNotNull() {
            addCriterion("update_by is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateByEqualTo(String value) {
            addCriterion("update_by =", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotEqualTo(String value) {
            addCriterion("update_by <>", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThan(String value) {
            addCriterion("update_by >", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
            addCriterion("update_by >=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThan(String value) {
            addCriterion("update_by <", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThanOrEqualTo(String value) {
            addCriterion("update_by <=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLike(String value) {
            addCriterion("update_by like", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotLike(String value) {
            addCriterion("update_by not like", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByIn(List<String> values) {
            addCriterion("update_by in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotIn(List<String> values) {
            addCriterion("update_by not in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByBetween(String value1, String value2) {
            addCriterion("update_by between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotBetween(String value1, String value2) {
            addCriterion("update_by not between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNull() {
            addCriterion("update_date is null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNotNull() {
            addCriterion("update_date is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateEqualTo(Date value) {
            addCriterion("update_date =", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotEqualTo(Date value) {
            addCriterion("update_date <>", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThan(Date value) {
            addCriterion("update_date >", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("update_date >=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThan(Date value) {
            addCriterion("update_date <", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
            addCriterion("update_date <=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIn(List<Date> values) {
            addCriterion("update_date in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotIn(List<Date> values) {
            addCriterion("update_date not in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateBetween(Date value1, Date value2) {
            addCriterion("update_date between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
            addCriterion("update_date not between", value1, value2, "updateDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}